/**
 * Created by 84995 on 2020/1/14.
 */
public class test6 {

    public static void main(String[] args) {


        int count=0;
            for (int i = 1; i <=100 ; i++) {
                String s = i + "";
                if (s.contains("9")){
                    continue;
                }
                count++;
                System.out.print(s+" ");

                if (count%5==0){
                    System.out.println();
                }


        }


    }
}
